<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>医院住院管理系统</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">医院住院管理系统</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    <span id="userName"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="../login.jsp">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item">
                    <a href="javascript:;">个人信息</a>
                    <dl class="layui-nav-child">
                        <dd><a href="selectNurse.html" target="myframe">查询个人信息</a></dd>
                        <dd><a href="updatePassword.html" target="myframe">修改密码</a></dd>
                        <dd><a href="upload.html" target="myframe">修改头像</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">护理中心</a>
                    <dl class="layui-nav-child">
                        <a href="addPhysical.html" target="myframe">添加体征数据</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">药品管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="../doctor/issueDrug.html" target="myframe">药品发放</a></dd>
                        <dd><a href="../doctor/selectDrug.html" target="myframe">库存查询</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe name="myframe" width="100%" height="100%"></iframe>
    </div>

</div>
<script src="../layui/layui.js"></script>
<script src="../js/jquery-1.12.2.min.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

        $.ajax({
            type:"get",
            url:"/hospital/nurse/selectNurseInfo.do",
            dataType:"json",
            success:function (data) {
                if (data.code == 1){
                    $("#userName").html(data.info.name);
                }else {
                    layer.msg("查询失败");
                }
            }
        })

    });
</script>
</body>
</html>